import React from 'react';

import './index.css';

function Case(props) {
  return (
  <div className='case-item-user'>
    <div className='item-name-user'>
      {props.detail[0]}
    </div>
    <div className='item-name-user'>
      {props.detail[1]}
    </div>
    <div className='check-button' onClick={()=>{props.remove(props.detail[0])}}
     style={props.detail[0]==='admin' ? {display: 'none'}: {}}>删除</div>
       <div className='check-button-admin' style={props.detail[0]==='admin' ? {}: {display: 'none'}}>管理员账号</div>
  </div>
  );
}

export default Case;
